#ifndef _MENUBAR_STEG
#define _MENUBAR_STEG

#include"Menu.h"
#include"Video.h"

#define SHADOW 0x8
#define MB_TXT 0x70
#define MB_HOT 0x71
#define MB_HIL 0x2

/* Defines */
#define DEF    5
#define STR    20
/* Funtions */

int getKey();
int inRectangle(int, int, int, int, int, int);/**************************** Menu Bar **************************************/
class MenuBar
{
	int NoOfMenus;
	int *x, *y;
	Rectangle MenuRect[DEF];
	char *Titles[STR];
	Menu MenuList[DEF];
		void calculateXY();
		void highlightTitle(int, int);
		int inMenuBar(int, int);
	public:
		MenuBar();
		MenuBar(int, char **);

		void addMenu(int, Menu *);
		void addMenu(int, int, char **);
		void showMenu(int);

		void notifyAll();
		void showMenuBar();
		int handleMenuBar(int);
};

#endif